<?php
	require_once('../../lib/'.'BaseDir.inc.htm');
	require_once (EIU_LIB.'View.class.htm');
	require_once('../../lib/'.'DBCommon.class.htm');
	require_once (EIU_CLASS.'BaseClass.htm');
	$oDB = new DBCommon();
	$conn =  $oDB->stl_openConn();
	$path = "/";
	$sub_count = count_chars("/",$path);
	$q_select="SELECT `CATCode`,`CATName` FROM `category_tbl` WHERE `isDeleted`=0";
	$rs_select = $oDB->stl_db_select($q_select, $conn);
	if(is_array($rs_select))
	{
		$i=0;
		foreach($rs_select as $key=>$value)
		{
			$data[$i]['catCode']=$rs_select[$key]->CATCode;
			$data[$i]['catName']=$rs_select[$key]->CATName;
			$i++;
		}
	}
	$arr['CATList'] = $data;
	echo json_encode($arr);
	$oDB->stl_closeConn($conn);
?>